Theoretical Computer Science Elsevier Complexity in Left-associative Grammar
نویسنده
چکیده
This paper presents a mathematical deenition of Left-Associative Grammar , and describes its formal properties. 1 Conceptually, LA-grammar is based on the notion of possible continuations, in contrast to more traditional systems such as Phrase Structure Grammar and Categorial Grammar , which are linguistically motivated in terms of possible substitutions. It is shown that LA-grammar generates all and only the recursive languages. The Chomsky hierarchy of regular, context-free, and context-sensitive languages is reconstructed in LA-grammar by simulating nite state automata, push-down automata, and linearly bounded automata, respectively. Using alternative restrictions on LA-grammars, the new language hierarchy of A-LAGs, B-LAGs, C-LAGs is proposed. The class of C-LAGs is divided into three subclasses representing diierent degrees of ambiguity and associated computational complexity. The class of C-LAGs without recursive ambiguities (called the C1-LAGs) parses in linear time, and includes all deterministic CF-languages, plus CF-languages with non-recursive ambiguities, e.g., a n b n c m d m a n b m c m d n , plus many context-sensitive languages, such as a n b n c n , a n b n c n d n e n , fa n b n c n g , a 2 i , a k b m c km and a i!. The class of C-LAGs with recursive \single re-turn" ambiguities (called C2-LAGs) parses in n 2 , and includes certain non-deterministic CF-languages such as WW R , plus context-sensitive languages like WW, WWW, WWWWW, and fWWWg. Finally, the class of unrestricted C-LAGs (called C3-LAGs) parses in exponential time and contains CF-languages like Lno and the \hardest context-free language" HCFL, plus context-sensitive languages like NP-complete Subset Sum and SAT.
منابع مشابه
Descriptional Complexity of Context-Free Grammar Forms
Csuhaj-Vajh, E. and A. Kelemenovi, Descriptional complexity of context-free grammar forms, Theoretical Computer Science 112 (1993) 277-289. Descriptional complexity aspects of grammar forms are studied. It is shown that grammatical complexity measures HEI,q, LEV,<, VAR,<, PROD,< and DEP., related to any appropriate infinite class ‘8 of grammars are unbounded on the infinite class of languages d...
متن کاملComplexity in Left-Associative Grammar
This paper presents a mathematical de nition of Left-Associative Grammar, and describes its formal properties. Conceptually, LA-grammar is based on the notion of possible continuations, in contrast to more traditional systems such as Phrase Structure Grammar and Categorial Grammar, which are linguistically motivated in terms of possible substitutions. It is shown that LA-grammar generates all a...
متن کاملIv. Branches of Mathematics Iv.21 Numerical Analysis
Karp, R. M., and V. Ramachandran. 1990. Parallel algorithms for shared-memory machines. In Handbook of Theoretical Computer Science, volume A, Algorithms and Complexity, edited by J. van Leeuwen. Cambridge, MA: MIT Press/Elsevier. Kearns, M. J., and U. V. Vazirani. 1994. An Introduction to Computational Learning Theory. Cambridge, MA: MIT Press. Kitaev, A., A. Shen, and M. Vyalyi. 2002. Classic...
متن کاملThe Loom-lag for Syntax Analysis Adding a Language-independent Level to Lag 1 Background the Left-associative Grammar Model (lag)
The left-associative grammar model (LAG) has been applied successfully to the mor-phologic and syntactic analysis of various european and asian languages. The algebraic deenition of the LAG is very well suited for the application to natural language processing as it inherently obeys de Saussure's second law (de Saussure, 1913, p. 103) on the linear nature of language, which phrase-structure gra...
متن کاملA Linear LAG for ai ! Markus Schulze Department of Computational Linguistics
The mainstream of syntax analysis has been discussing the question of mathematical complexity of natural language parsingmostly in relation to the well-known Chomsky-hierarchy. There are however other grammar models with different complexity-hierarchies that are worth looking at. This paper presents a grammar for ai! that parses with linear complexity in a non-PSGformalism, while a PSG for this...
متن کامل